<?php
/**
 *
 */
class Instr extends CI_Controller {
    public function __construct() {
        parent::__construct();
        $this->load->model('YouDao_model', 'yd');
    }

    public function index() {
        // echo '我将开始一个有趣的项目';
        // 我要调用页面
        $this->load->view('instrument.html');
    }

    public function go($content = '') {
        $data = $this->yd->translate($this->input->post('content'));

        echo $this->yd->ydTransToStr($data);
    }
}

?>